package com.easyspringboot.bean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author xiaoyi
 * @Version 1.0
 * @ClassName TableInfo
 * @Time 17:00
 */
public class TableInfo {
    private String tableName;//表名
    private String beanName;//实体类名
    private String beanParamName;//实体类参数名
    private String comment;//表注释
    private List<FieldInfo> fieldList;//字段信息
    private List<FieldInfo> fieldExtendList;//扩展字段信息

    private Map<String,List<FieldInfo>> keyIndexMap = new HashMap<>();//唯一索引信息
    private boolean havaDate;//是否有日期类型
    private boolean haveDateTime;//是否有日期时间类型
    private boolean haveBigDecimal;//是否有BigDecimal类型

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getBeanParamName() {
        return beanParamName;
    }

    public void setBeanParamName(String beanParamName) {
        this.beanParamName = beanParamName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<FieldInfo> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<FieldInfo> fieldList) {
        this.fieldList = fieldList;
    }

    public Map<String, List<FieldInfo>> getKeyIndexMap() {
        return keyIndexMap;
    }

    public void setKeyIndexMap(Map<String, List<FieldInfo>> keyIndexMap) {
        this.keyIndexMap = keyIndexMap;
    }

    public boolean getHavaDate() {
        return havaDate;
    }

    public void setHavaDate(boolean havaDate) {
        this.havaDate = havaDate;
    }

    public boolean getHaveDateTime() {
        return haveDateTime;
    }

    public void setHaveDateTime(boolean haveDateTime) {
        this.haveDateTime = haveDateTime;
    }

    public boolean getHaveBigDecimal() {
        return haveBigDecimal;
    }

    public void setHaveBigDecimal(boolean haveBigDecimal) {
        this.haveBigDecimal = haveBigDecimal;
    }

    public List<FieldInfo> getFieldExtendList() {
        return fieldExtendList;
    }

    public void setFieldExtendList(List<FieldInfo> fieldExtendList) {
        this.fieldExtendList = fieldExtendList;
    }
}
